﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Module_FlightDetail : PanelControl
{
    string ngaydi = Helper.getQuerystr("ngaydi");
    string ngayve = Helper.getQuerystr("ngayve");
    string noidi = Helper.getQuerystr("noidi");
    string noiden = Helper.getQuerystr("noiden");
    FlightBusiness fb = new FlightBusiness();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            bindGV(GridView1, noidi, noiden, ngaydi);
        }
    }

    public void bindGV(GridView gv,string noidi,string noiden,string ngaydi)
    {
        string t = Convert.ToDateTime(ngaydi).ToShortDateString();
        gv.DataSource = fb.getSelectFlight(noidi, noiden, t);
        gv.DataBind();
    }


    protected void btnNext_Click(object sender, EventArgs e)
    {
        
    }
    protected void RadioButton2_CheckedChanged(object sender, EventArgs e)
    {
        Label1.Text = ((RadioButton)sender).Checked.ToString();
    }
}